package pay.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import pay.entity.VipHistoryEntity;


@Mapper
public interface VipHistoryMapper extends BaseMapper<VipHistoryEntity> {

    @Insert(
            "insert into vip_history(user_id, create_time, days, vip_source, operator_id, order_id) " +
                    "values(#{userId},#{createTime},#{days},#{vipSource},#{operatorId},#{orderId})"
    )
    int insert(VipHistoryEntity vipHistoryEntity);

}